@echo off
@REM ----------------------------------------------------------------------------------
@REM 0 - Build LitwareHR Smart Client Application
@REM 
@REM This Batch file Builds all the LitwareHR Smart Client Application Solution
@REM
@REM ----------------------------------------------------------------------------------

set msBuildDir=%WINDIR%\Microsoft.NET\Framework\v2.0.50727
set solutionDir="."
set buildType=Release
set returnErrorCode=true
set verbosity=quiet
set pause=true

@echo Building "LitwareHR Smart Client Application"
call %msBuildDir%\msbuild "..\solution\LitwareHR-SC\LitwareHR.VS2005.sln" /t:Rebuild /p:Configuration=%buildType% /verbosity:%verbosity% > nul
@if errorlevel 1 goto error
@xcopy ..\solution\LitwareHR-SC\bin\%buildType%\*.* ..\bin\SmartClientApp /y /e /q /i > nul
@echo Build Complete

@goto :exit

:error
@echo An Error Occured building the LitwareHR Sample Application Solution

:exit
@echo Finished
